package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class RedpackageHistory implements Parcelable {

    @SerializedName("after_balance")
    private String after_balance;

    /**
     * 支付渠道类型ID
     */
    @SerializedName("type")
    private int type;

    /**
     * 支付渠道主题
     */
    @SerializedName("money")
    private String money;

    /**
     * 支付渠道见到描述信息
     */
    @SerializedName("created_at")
    private String created_at;

    /**
     * 支付渠道icon图标下载地址
     */
    @SerializedName("title")
    private String title;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAfter_balance() {
        return after_balance;
    }

    public void setAfter_balance(String after_balance) {
        this.after_balance = after_balance;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public RedpackageHistory() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.type);
        dest.writeString(this.money);
        dest.writeString(this.title);
        dest.writeString(this.after_balance);
        dest.writeString(this.created_at);
    }

    protected RedpackageHistory(Parcel in) {
        this.type = in.readInt();
        this.money = in.readString();
        this.title = in.readString();
        this.after_balance = in.readString();
        this.created_at = in.readString();
    }

    public static final Creator<RedpackageHistory> CREATOR = new Creator<RedpackageHistory>() {
        @Override
        public RedpackageHistory createFromParcel(Parcel source) {
            return new RedpackageHistory(source);
        }

        @Override
        public RedpackageHistory[] newArray(int size) {
            return new RedpackageHistory[size];
        }
    };


}
